home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / file-tra / fsp-2.7 / fsp-2 / fsp / include / vms / tweak.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-21  |  3.8 KB  |  161 lines

  1. /* include/tweak.h. VMS version */
  2. #ifndef _FSP_TWEAK_H_
  3. #define _FSP_TWEAK_H_
  4.  
  5. /* redefine main() for executables */
  6. #ifndef MERGE
  7. #define main vms_main
  8. #endif
  9.  
  10. /* define this if your system allows file names > 14 characters */
  11. #define HAVE_LONG_FILE_NAMES 1
  12.  
  13. /* Define if you have dirent.h.  */
  14. #define DIRENT 1
  15.  
  16. /* Define if you don't have vprintf but do have _doprnt.  */
  17. #undef HAVE_DOPRNT
  18.  
  19. /* Define if you have unistd.h.  */
  20. #undef HAVE_UNISTD_H
  21.  
  22. /* Define this if you have tzfile.h */
  23. #undef HAVE_TZFILE_H
  24.  
  25. /* Define if you have the vprintf function.  */
  26. #define HAVE_VPRINTF 1
  27.  
  28. /* Define this if your compiler understands ANSI prototyping */
  29. #define HAVE_ANSI_PROTO 1
  30.  
  31. /* Define if you have the ANSI C header files. (ansi strings, ctype, etc.) */
  32. #define STDC_HEADERS 1
  33.  
  34. /* Define this if you are running on an AIX system. */
  35. #undef _ALL_SOURCE
  36.  
  37. /* Define this if you have posix compliance
  38. #undef _POSIX_SOURCE
  39.  
  40. /* Define if you don't have dirent.h, but have sys/dir.h.  */
  41. #undef SYSDIR
  42.  
  43. /* Define if you don't have dirent.h, but have sys/ndir.h.  */
  44. #undef SYSNDIR
  45.  
  46. /* Define if the closedir function returns void instead of int.  */
  47. #define VOID_CLOSEDIR 1
  48.  
  49. /* Define HAVE_D_INO if you have d_ino in dirent (or direct) struct */
  50. /* see /usr/include/dir.h or ndir.h or dirent.h */
  51. #undef HAVE_D_INO
  52.  
  53. /* Define HAVE_D_FILENO if you have d_fileno in dirent (or direct) struct */
  54. /* see /usr/include/dir.h or ndir.h or dirent.h */
  55. #undef HAVE_D_FILENO
  56.  
  57. /* Define to empty if the keyword does not work.  */
  58. #undef const
  59.  
  60. /* Define the following if your site has a funky bsearch */
  61. /* #define bsearch ansi_bsearch
  62.  */
  63.  
  64. /* define the following if your site doesn't define 'strdup()' */
  65. #define NEED_STRDUP 1
  66.  
  67. /* define the following if your site doesn't define 'random()' */
  68. #define NEED_RANDOM 1
  69.  
  70. /* define the following if your site doesn't define 'bcopy()' */
  71. #undef NEED_BCOPY
  72.  
  73. /* Define the following if your site has lockf() */
  74. #undef HAVE_LOCKF
  75.  
  76. /* Define the following if you site has shared memory */
  77. #undef HAVE_SHMEM
  78.  
  79. /* Define the following if your system has flock() */
  80. #undef HAVE_FLOCK
  81.  
  82. /* define this if WEXITSTATUS is defined on your system */
  83. #define HAVE_WEXITSTATUS 1
  84.  
  85. /* define this if S_ISREG is defined on your system */
  86. #undef HAVE_S_ISREG
  87.  
  88. /* define this if S_ISDIR is defined on your system */
  89. #undef HAVE_S_ISDIR
  90.  
  91. /* define this if you have 'union wait' in <sys/wait.h> */
  92. #define HAVE_UNION_WAIT 1
  93.  
  94. /* define this if you have SECSPERDAY */
  95. #undef HAVE_SECSPERDAY
  96.  
  97. /* define this if you have DAYSPERNYEAR */
  98. #undef HAVE_DAYSPERNYEAR
  99.  
  100. /* define this if your have strings.h */
  101. #undef HAVE_STRINGS_H
  102.  
  103. /* define this if your have string.h */
  104. #define HAVE_STRING_H 1
  105.  
  106. /* define this if you have memory.h */
  107. #undef HAVE_MEMORY_H
  108.  
  109. /* define this if your string.h has bogus type declarations for a few things */
  110. #undef STRING_H_BOGUS
  111.  
  112. /* These two will be automatically set by the configure script if needed */
  113. #define USE_SECSPERDAY (long)60*60*24
  114. #define USE_DAYSPERNYEAR 365
  115.  
  116. #ifndef HAVE_WEXITSTATUS
  117. #define WEXITSTATUS(x) ((x).w_T.w_Retcode)
  118. #endif
  119.  
  120. #ifndef HAVE_S_ISREG
  121. #define S_ISREG(mode) ((mode) & S_IFREG)
  122. #endif
  123.  
  124. #ifndef HAVE_S_ISREG
  125. #define S_ISDIR(mode) ((mode) & S_IFDIR)
  126. #endif
  127.  
  128. #if defined(DIRENT)
  129. #define HAVE_STRUCT_DIRENT
  130. #else
  131. #undef HAVE_STRUCT_DIRENT
  132. #endif
  133.  
  134. #ifndef HAVE_SECSPERDAY
  135. #define SECSPERDAY USE_SECSPERDAY
  136. #endif
  137.  
  138. #ifndef HAVE_DAYSPERNYEAR
  139. #define DAYSPERNYEAR USE_DAYSPERNYEAR
  140. #endif
  141.  
  142. #if defined(HAVE_D_INO) && !defined(HAVE_D_FILENO)
  143. #define d_fileno d_ino
  144. #else
  145. #if !defined(HAVE_D_INO) && defined(HAVE_D_FILENO)
  146. #define d_ino d_fileno
  147. #endif
  148. #endif
  149.  
  150. #define WORD_TYPE_2 unsigned short
  151. #define WORD_TYPE_4 unsigned long
  152.  
  153. #define BB_READ4(V) ntohl(*(WORD_TYPE_4 *)(V))
  154. #define BB_WRITE4(V,A) *(WORD_TYPE_4 *)(V) = htonl(A)
  155. #define BB_READ2(V) ntohs(*(WORD_TYPE_2 *)(V))
  156. #define BB_WRITE2(V,A) *(WORD_TYPE_2 *)(V) = htons(A)
  157.  
  158. #include "proto.h"
  159.  
  160. #endif /* _FSP_TWEAK_H_ */
  161.